As for the visitor pattern , much of the reason it is so widely applicable is the fact that it complements the composite pattern 至于visitor模式,它受到如此廣泛應(yīng)用的許多原因是它補(bǔ)充了composite模式。
The composite pattern is simply the object - oriented way to specify a recursively defined datatype ; these opportunities pop up all the time in software development Composite模式只是指定遞歸定義的數(shù)據(jù)類型的面向?qū)ο蠓椒ǎ贿@些機(jī)會(huì)始終出現(xiàn)在軟件開發(fā)中。
Composite event detection ( ced ) extends the basic event - system and improves the flexibility by allowing application components to express their interest in complex composite patterns of basic events 復(fù)合事件檢測技術(shù)的運(yùn)用使得基于事件通信機(jī)制的應(yīng)用系統(tǒng)可以支持復(fù)合事件模式的表示,極大地?cái)U(kuò)展了系統(tǒng)的事件處理能力和靈活性。